package com.broadengate.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.broadengate.bean.DepartmentInfo;
import com.broadengate.dao.BaseDao;
import com.broadengate.dao.DepartmentDao;

@Service("departmentService")
public class DepartmentService<T> extends BaseService<T> {
	
	
	@Autowired
	private DepartmentDao<T> departmentDao;
	
	@Override
	public BaseDao<T> getDao() {
		// TODO Auto-generated method stub
		return departmentDao;
	}
	
	public List<DepartmentInfo> getDepartmentById(int departmentId)
	{
	    return departmentDao.getDepartmentById(departmentId);
	}
}
